package com.designpattern.createpattern.demo04;

public class ApplePizzaFactory implements PizzaFactory{
    @Override
    public Pizza createPizza(String type) {
        switch (type){
            case "big":
                return new AppleBigPizza();
            case "small":
                return new AppleSmallPizza();
        }
        return null;
    }
}
